package com.example.oppotest.util.taobao;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @Author wyk
 * @Date: 2025/3/4 23:09
 */
public class taobaoUtils {

    public static void main(String[] args) {
        try {
            String originalString = "https://m.tb.cn/h.TGMvN1?tk=OiSpe9hVz92";
            String encodedString = URLEncoder.encode(originalString, "UTF-8");
            System.out.println("Encoded String: " + encodedString); // 输出: Encoded String: %3A
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }

}
